{% extends "compose.html" %}

{% block title %} admin - compose {% end %}

{% block header %}
admin
{% end %}

{% block imenu %}
<div class="aeCompose">
  <div class="row">
	<div class="imenu">
	  <a href="/a/setting/site/">site</a> | <a href="/a/setting/profile/">profile</a> | <a href="/a/setting/link/">link</a> | <a href="/a/setting/cate/">cate</a>  
	</div>
  </div>
</div>
{% end %}

{% block body %}
<div class="aePosts">
  <h2>setting</h2>
</div>
<div class="aeCompose">
  <form action="" method="POST">
	<div class="row">
	  <label>Site Name</label><input type="text" name="sitename" value="{{ 'sitename' in site_options and site_options.get('sitename') or ' ' }}" />
	</div>
	<div class="row">
	  <label>Default Limit</label><div class="tag">
		{% for i in range(10,110,10) %}
		<input type="radio" name="default_limit" value="{{ i }}" {% if site_options.get("default_limit")==i %} checked="checked" {% end %}/><label>{{ i }}</label>
		{% end %}
	  </div>
	</div>
	<div class="row">
	  <label>Google Analytics Code</label><textarea name="gacode" rows="10" style="clear:right;">{{ 'gacode' in site_options and site_options.get('gacode') or ' ' }}</textarea>
	</div>
	<div class="hr">
	  <input type="submit" name="submit" value="submit" />
	</div>
	{{ xsrf_form_html() }}
  </form>
</div>
{% end %}
